package com.itrip.dto;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel
public class ResponseDTO {
    @ApiModelProperty(value = "100：请求成功,101：登录失败,102：未认证,103：请求异常")
    private Integer statusCode;
    @ApiModelProperty(value="描述信息")
    private String message;
    @ApiModelProperty(value = "令牌")
    private Object token;

    /**
     *
     * @param statusCode 状态码
     *                 <br/>100：请求成功
     *                 <br/>101：登录失败
     *                 <br/>102：未认证
     *                 <br/>103：请求异常
     * @param message 描述信息
     * @param token 令牌
     */
    public ResponseDTO(Integer statusCode, String message, Object token) {
        this.statusCode = statusCode;
        this.message = message;
        this.token = token;
    }

    public ResponseDTO(){}

    public Integer getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(Integer statusCode) {
        this.statusCode = statusCode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getToken() {
        return token;
    }

    public void setToken(Object token) {
        this.token = token;
    }
}
